package com.bwie.exceptions;

import lombok.Data;

/**
 * 自定义业务异常
 */
@Data
public class BizException extends RuntimeException {

    /**
     * 异常状态码
     */
    private Integer code;

    /**
     * 异常信息
     */
    private String message;

    public BizException(String message) {
        this.message = message;
    }

    public BizException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
